﻿using System.Runtime.Serialization;
using LiSA_Server.Base.NHibernate.Models;
using NHibernate;
using NHibernate.Mapping.ByCode.Conformist;

namespace LiSA_Service.ResearchProjects.Models
{
    [DataContract]
    public class ProjectSearchString : Entity
    {
        [DataMember]
        public virtual string SearchString { get; set; }

        [DataMember]
        public virtual string Comment { get; set; }

        [DataMember]
        public virtual string Classification { get; set; }
    }

    /// <summary>
    /// The ArticleFeedback mapping.
    /// </summary>
    public class ProjectSearchStringMapping : ClassMapping<ProjectSearchString>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectSearchStringMapping"/> class.
        /// </summary>
        public ProjectSearchStringMapping()
        {
            this.Property(x => x.SearchString, x => x.Type(NHibernateUtil.StringClob));
            this.Property(x => x.Comment, x => x.Type(NHibernateUtil.StringClob));
            this.Property(x => x.Classification, x => x.Type(NHibernateUtil.StringClob));
        }
    }
}